package com.springboot2.controller.utils;

import lombok.Data;
@Data
public class R {
    private Boolean flag;
//    不能写实体类 因为类型很多
    private Object data;
//    处理异常 msg
    private String msg;
//    空参数构造方法必须要有
    public R (){

    }
    public R(Boolean flag){
        this.flag = flag;
    }

    public R(Boolean flag,Object data){
        this.flag = flag;
        this.data = data;
    }
    public R(Boolean flag,String msg){
        this.flag = flag;
        this.msg = msg;
    }
}
